cmake_minimum_required(VERSION 3.0.0)
project(Communication VERSION 0.1.0)
if(NOT LCM_FOUND)
    find_package(lcm REQUIRED)
endif()

if(NOT EIGEN_FOUND)
    find_package(Eigen3 REQUIRED)
endif()


add_library(Communication SHARED
    Communication.cpp
    )

target_include_directories(
    Communication PUBLIC
    ./
    ${PROJECT_SOURCE_DIR}/exlcm
    ${EIGEN3_INCLUDE_DIR}
)

target_link_libraries(
    Communication
    lcm
)

